package com.jzg.sys.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 基础数据编码明细
 * </p>
 *
 * @author lzp
 * @since 2019-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("BASE_DATA_DETAIL")
public class BaseDataDetail extends Model<BaseDataDetail> {

    private static final long serialVersionUID = 1L;

    @TableId("DATA_DETAIL_ID")
    private String dataDetailId;

    @TableField("DATA_ID")
    private String dataId;

    @TableField("DATA_DETAIL_CODE")
    private String dataDetailCode;

    @TableField("DATA_DETAIL_NAME")
    private String dataDetailName;

    /**
     * 是否有效
     */
    @TableField("IS_VALID")
    private Boolean isValid;


    @Override
    protected Serializable pkVal() {
        return this.dataDetailId;
    }

}
